package org.example.intercepor;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.net.http.WebSocket;
import java.util.concurrent.TransferQueue;

@Configuration
public class WebConfigurerAdapter implements WebMvcConfigurer {

    @Bean
    public TraceLogInterceptor logInterceptor(){
        return new TraceLogInterceptor();

    }

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(logInterceptor());
    }
}
